package service.impl;

import java.util.List;

import dao.TableDao;
import dao.impl.TableDaoImpl;
import entiey.Table;
import service.TableService;

public class TableServiceImpl implements TableService {

	private TableDao dao=new TableDaoImpl();
	
	@Override
	public boolean add(Table t) {
		return dao.add(t)>0;
	}

	@Override
	public boolean delete(int id) {
		return dao.delete(id)>0;
	}

	@Override
	public boolean update(Table t) {
		return dao.update(t)>0;
	}

	@Override
	public List<Table> findAll() {
		return dao.findAll();
	}

	@Override
	public Table findById(int id) {
		return dao.findById(id);
	}

	@Override
	public List<Table> findBysattus(int status) {
		return dao.findBysattus(status);
	}

}
